﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoForLinq.Chapter1
{
    class Demo1_4_StringToInt
    {
        static void Main(string[] args)
        {
            string[] numbers = {"0042", "010", "9", "27"};
            int[] nums = numbers.Select(s => int.Parse(s)).OrderBy(s=>s).ToArray();
            foreach (var num in nums)
            {
                Console.WriteLine(num);
            }
        }
    }
}
